package com.lins.framework.utils;

public class StringUtils {

    /**
     * 简体转繁体
     *
     * @param simpStr 简体字符串
     * @return 繁体字符串
     */
    public static String SimToTra(String simpStr) {
        ZHConverter converter = ZHConverter
                .getInstance(ZHConverter.TRADITIONAL);
        String traditionalStr = converter.convert(simpStr);
        return traditionalStr;
    }

    /**
     * 繁体转简体
     *
     * @param tradStr 繁体字符串
     * @return 简体字符串
     */
    public static String TraToSim(String tradStr) {
        ZHConverter converter = ZHConverter.getInstance(ZHConverter.SIMPLIFIED);
        String simplifiedStr = converter.convert(tradStr);
        return simplifiedStr;
    }
}
